-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PostgreSQLQueue and DelayedPostgreSQL Pub/Sub #34
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
roblaszczak
reviewed
Oct 21, 2024
m110
changed the title
Add ConditionalPostgreSQLSchema
Add PostgreSQLQueue and DelayedPostgreSQL Pub/Sub
Oct 23, 2024
roblaszczak
approved these changes
Oct 24, 2024
roblaszczak
reviewed
Oct 24, 2024
m110
added a commit
to ThreeDotsLabs/watermill
that referenced
this pull request
Oct 25, 2024
* Added the `Requeuer` component. * It works as a simpler version of the Forwarder, routing messages from one topic to another (a dynamic one). * Can be used to move messages that failed to process back to the original topic, so they don't block other messages. * Can be used together with the poison middleware and the `delay` component to delay the forwarding. * Added the `delay` package. It contains helpers for setting delay metadata on messages. * **Does not do anything by itself.** A Pub/Sub needs to support it explicitly. For now, that's the delayed postgres Pub/Sub implemented in ThreeDotsLabs/watermill-sql#34 * Use case 1: publishing a message after a given delay or at given time (see the example). * Use case 2: automatically moving messages out of the poison queue to the original topic after a delay (used together with the `Requeuer` component). * Added the `pq` CLI tool for working with poison queues.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PostgreSQLQueueSchema
andPostgreSQLQueueOffsetsAdapter
.WHERE
clause.NewDelayedPostgreSQLPublisher
andNewDelayedPostgresSQLSubscriber
delay
component implemented in Requeuer and Message Delay watermill#469SchemaAdapter
andOffsetsAdapter
interfaces (Breaking change -> will bump the major to v4).params
struct passed to the methods instead of raw arguments. It adds some verbosity but allows extending the params if needed with no breaking changes to the library.params
argument and return errors.